package myUtil;

public class materialCheck {
    public static boolean checkNumber(String itemId) {
        if (itemId == null) {
            return false;
        }
        if(itemId.length()!=9)
            return false;
        return true;
    }

    public static boolean checkS(String s) {
        if (s == "") {
           return false;
        }
        else {
            return true;
        }
    }

    public static boolean checkPhoneNumber(String phoneNumber) {
        if (phoneNumber == null) {
            return false;
        }
        String pattern = "1\\d{10}";
        if (!phoneNumber.matches(pattern)){
            return false;
        }else {
            return true;
        }
    }
}
